package com.axonactive.yolo.service.interfaces;

import java.util.List;

import com.axonactive.yolo.domain.ExchangeRate;
import com.axonactive.yolo.exception.ExchangeRateNotFoundException;

public interface ExchangeRateService {

	public List<ExchangeRate> findAll();
	
	public ExchangeRate findByCode(String code);
	
	public List<ExchangeRate> getRateListByBaseCurrency(ExchangeRate baseCurrency);
	
	public ExchangeRate update(String code, double rate) throws ExchangeRateNotFoundException;
	
	public double getRateByNewCode(String newCode);

	public double getRateByOldCode(String oldCode);

	public double convert(double price, String oldCode, String newCode);

}
